package com.vincent.sciinfo.service;

import com.vincent.sciinfo.interceptor.FeignPassToken;
import com.vincent.sciinfo.pojo.TSMResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-message", configuration = FeignPassToken.class)
public interface MessageService {

    @RequestMapping("/message/sel_sys_msg")
    TSMResult selectSystemMsg();

    @RequestMapping("/message/sel_personal_msg")
    TSMResult selectPersonalMsg(@RequestParam("teacherId") String teacherId);
}
